<div class="product-card">
    <input type="hidden" value="{{ product.id }}" data-product-id>
    <div class="product-card-header">
        <a href="{% url 'product:single_product' product.id %}" class="product-card-name">
            {{ product.name }}
        </a>
        <span class="product-card-price">
            {{ price_in_another_currency }}
        </span>
    </div>
    <div class="product-card-content">
        <p class="product-card-description">
            {% if list_of_products %}
                {{ product.description|truncatewords:40 }}
            {% else %}
                {{ product.description }}
            {% endif %}
        </p>
    </div>
    <div class="product-card-footer">
        {% if show_buy_button %}
            <form class="buy-product-form" method="post">
                {% csrf_token %}
                <button class="standard-button" type="submit" data-buy-product>
                    Купить
                </button>
                <button class="standard-button" type="submit" data-add-product-to-cart>
                    Добавить в корзину
                </button>
            </form>
        {% endif %}
    </div>
</div>
